//用户管理API
import request from "../utils/request";

const api_url=`/admin/user`


export default {

  //认证审批
  approval(id, authStatus) {
    return request({
      url: `${api_url}/approval/${id}/${authStatus}`,
      method: 'get'
    })
  },


  //用户详情
  show(id) {
    return request({
      url: `${api_url}/show/${id}`,
      method: 'get'
    })
  },

  //用户状态
  lock(id, status) {
    return request({
      url: `${api_url}/lock/${id}/${status}`,
      method: 'get'
    })
  },

  //用户列表(带条件分页)
  getPageList(page, limit, searchObj) {
    return request({
      url: `${api_url}/${page}/${limit}`,
      method: 'get',
      params: searchObj
    })
  }
}
